import time
from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
# driver.get('https://www.baidu.com')
# time.sleep(1)
# kw = driver.find_element(By.ID,'kw')
# #id
# print(kw.id)
# #size
# print(kw.size)
# #rect
# print(kw.rect)
# #tag_name
# print(kw.tag_name)
# a = driver.find_element(By.LINK_TEXT,'新闻')
# #text
# print(a.text)
# #send_key()
# kw.send_keys('蔡徐坤')
# #clear()
# kw.clear()
# #click()
# a.click()
# get_attribute()
# print(kw.get_attribute('id'))
# #is_displayed()
# print(kw.is_displayed())
# #is_enabled()
# print(kw.is_enabled())
driver.get('https://sahitest.com/demo/clicks.htm')
print(driver.find_element(By.XPATH, '//input[@disabled]').is_displayed())
